<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Array2Table div Demo</title>
<style type="text/css">

.att .hcol {border: 2px solid #bbbbbb;}
.att .col {border: 1px solid #cccccc;}
.att .fcol {border: 1px solid #000000;}
</style>
</head>

<body>
<h2>Basic table example</h2>
<p>This is a basic table example :</p>

<?php
// Data Header and Footer in different arrays.
// this is the basic setting
$aData = array( 
               array("rose",   1.25 ,  15, "sometext", "A","1"),
               array("daisy",  0.75 ,  25, "moretext", "b","2"),
               array("orchid", 1.15 ,  7,  "evenmore", "b","3"),
               array("rose2",  1.25 ,  15, "sometext", "v","4"),
               array("daisy3", 0.75 ,  25, "moretext", "c","15"),
               array("orchid4",1.15 ,   7, "evenmore", "d","6"), 
               array("rose2",  1.25 ,  15, "sometext", "v","4"),
               array("daisy3", 0.75 ,  25, "moretext", "c","15"),
               array("orchid4",1.15 ,   7, "evenmore", "d","6") 
             ); 
             
             
$aHeader= array("Name",   "Price", "Number", "Description", "letter", "number");
$aFooter= array("fName",   "fPrice", "fNumber", "fDescription", "fletter", "fnumber");


// include the Script
include ("classes/arraytotable.php");

// create new tableobject
$oAtt=new ArrayToTable();

// set the main Data Array
$oAtt->aData =$aData;

// set header and footer
// if no header or footer set , no <thead> or <tfoot> sections are created
//
$oAtt->aHeader = $aHeader;
//$oAtt->aFooter = $aFooter;

// set caption, if not set , no caption is created
$oAtt->sCaption="Hallo Überschrift";

// Do the actual job
echo ($oAtt->Create());

//thats it 



?>
</body>
</html>